// 屏幕rem适配
export function resetRem () {
  window.onresize = getRem
  function getRem () {
    const baseSize = 120
    const clientWidth = document.documentElement.clientWidth
    let scale = clientWidth / 1920
    const minClient = 1440
    if (scale < (minClient / 1920)) {
      scale = minClient / 1920
    }
    document.documentElement.style.fontSize = baseSize * scale + 'px'
  }
  getRem()
}
